home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / XText / ErrorStream.h < prev    next >
Encoding:
Text File  |  1992-04-14  |  946 b   |  31 lines

  1. /*    This file is part of the XText package (version 0.8)
  2.     Mike Dixon, April 1992
  3.     
  4.     Copyright (c) 1992 Xerox Corporation.  All rights reserved.
  5.  
  6.     Use and copying of this software and preparation of derivative works based
  7.     upon this software are permitted.  This software is made available AS IS,
  8.     and Xerox Corporation makes no warranty about the software or its
  9.     performance.
  10. */
  11.  
  12. #import <objc/Object.h>
  13.  
  14. /*  The ErrorStream class allows clients of XText to customize its error
  15.     handling.  All errors are reported by invoking the report: method on
  16.     a client-supplied ErrorStream.  The default implementation simply puts
  17.     the message up in a modal panel, but you can create subclasses that do
  18.     more interesting things if you like.
  19.  
  20.     By default, all instances of XText share a single instance of ErrorStream,
  21.     which can be obtained by calling [ErrorStream default].
  22. */
  23.  
  24. @interface ErrorStream:Object
  25. {
  26. }
  27. + default;
  28. - report: (const STR) msg;
  29. @end
  30.  
  31.